class Bird(object):
    def __init__(self):
        self.color = "红色"

    def fly(self):
        print(f"{self.color}的小鸟在天上飞")


bird = Bird()


bird.fly()

print("小鸟是什么颜色呢？",bird.color)
























